<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>

        // const person = {
        //     name : 'cc' ,
        //     age : 18
        // }

        let name = 'cc' ;
        let age = 18 ;


        // const person = {
        //     // 键名  键值
        //     name : name ,
        //     age : age ,
        //     class : 2218
        // }
        // console.log(person);


        const person = {
            // 键值对应的是变量name存的值  也就是cc   name : name  -> name
            name ,
            age , 
            class : 2218
        }

    </script>
    
</body>
</html>